<%--
  Created by IntelliJ IDEA.
  User: Demon-pro
  Date: 2015/7/21
  Time: 11:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <%@include file="../includes/head.jsp" %>
    <title>${menu.menuName}</title>
</head>
<body class="page-header-fixed page-quick-sidebar-over-content">
<%@include file="../includes/top.jsp" %>
<div class="page-container">
    <%@include file="../includes/sidebar.jsp" %>
    <div class="page-content-wrapper">
        <div class="page-content">
            <%@include file="../includes/current.jsp" %>
            <div class="row">
                <div class="col-md-12">
                    <div class="portlet box">
                        <div class="portlet-body form">
                            <div class="form-body">
                                <!--锅炉参数-->
                                <div class="col-md-12">
                                    <div class="col-md-12 margin-bottom-10">
                                        <h2>锅炉参数

                                            <span class="help-inline">
                                                   &nbsp; &nbsp; &nbsp; &nbsp;不引用锅炉数据
                                               <input type="checkbox" id="ycfjglState" name="ycfjglState"
                                               <%--@elvariable id="onceFanDes" type="com.infitecs.eyas.oncefan.model.OnceFanDes"--%>
                                               <c:if test="${onceFanDes!=null&&operateField.ycfjglState=='1'}">
                                                          checked
                                              </c:if>
                                                       >
                                           </span>
                                        </h2>
                                    </div>
                                    <div class="col-md-12">
                                        <div class="col-md-6 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="control-label col-md-4" style="padding-left: 0"
                                                       name="ycfjglLabel"        for="E1">锅炉燃煤量</label>

                                                <div class="col-md-8">
                                                    <input type="text" class="form-control input-inline" id="E1"  name="ycfjgl"
                                                       value="${onceFanDes.e1Show}"
                                                            />
                                                    <span class="help-inline">
                                                        t/h
                                                    </span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="control-label col-md-4" style="padding-left: 0"
                                                       name="ycfjglLabel"     for="E4">空气预热器漏风率(保证值)</label>

                                                <div class="col-md-8">
                                                    <input type="text" class="form-control input-inline" id="E4"  name="ycfjgl" value="${onceFanDes.e4Show}" />
                                                    <span class="help-inline">
                                                       %
                                                    </span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="control-label col-md-4" style="padding-left: 0"
                                                       name="ycfjglLabel"        for="E2">炉膛漏风率</label>

                                                <div class="col-md-8">
                                                    <input type="text" class="form-control input-inline" id="E2"  name="ycfjgl"  value="${onceFanDes.e2Show}"/>
                                                    <span class="help-inline">
                                                        %
                                                    </span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="control-label col-md-4" style="padding-left: 0"
                                                       name="ycfjglLabel"      for="E5">机械未完全燃烧损失</label>

                                                <div class="col-md-8">
                                                    <input type="text" class="form-control input-inline" id="E5"  name="ycfjgl" value="${onceFanDes.e5Show}" />
                                                    <span class="help-inline">
                                                        %
                                                    </span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="control-label col-md-4" style="padding-left: 0"
                                                       name="ycfjglLabel"    for="E3">炉膛出口过量空气系数</label>

                                                <div class="col-md-8">
                                                    <input type="text" class="form-control input-inline" id="E3"  name="ycfjgl" value="${onceFanDes.e3Show}" />
                                                    <span class="help-inline">
                                                        /
                                                    </span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="control-label col-md-4" style="padding-left: 0"
                                                        >空气预热器型式</label>

                                                <div class="col-md-8">
                                                    <select id="E6">
                                                        <option value="2" <c:if test="${onceFanDes.e6 == 2.0}">selected="selected" </c:if> >回转式三分仓</option>
                                                        <option value="1" <c:if test="${onceFanDes.e6 == 1.0}">selected="selected" </c:if> >回转式四分仓</option>
                                                    </select>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <!--锅炉参数-->
                                <!--空气系统-->
                                <div class="col-md-12">
                                    <div class="col-md-12 margin-bottom-10">
                                        <h2>空气系统</h2>
                                    </div>
                                    <div class="col-md-12">
                                        <div class="col-md-6 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="control-label col-md-4" style="padding-left: 0"
                                                       name="ycfjglLabel"        for="E7">锅炉一次风率</label>

                                                <div class="col-md-8">
                                                    <input type="text" class="form-control input-inline" id="E7"  name="ycfjgl"  value="${onceFanDes.e7Show}"/>
                                                    <span class="help-inline">
                                                        %
                                                    </span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="control-label col-md-4" style="padding-left: 0"
                                                       name="ycfjglLabel"   for="E9">预热器入口一次风温度</label>

                                                <div class="col-md-8">
                                                    <input type="text" class="form-control input-inline" id="E9"  name="ycfjgl"  value="${onceFanDes.e9Show}"/>
                                                    <span class="help-inline">
                                                       ℃
                                                    </span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="control-label col-md-4" style="padding-left: 0"
                                                       id="e15Label"     for="E15">空气预热器一次风漏风率</label>

                                                <div class="col-md-8">
                                                    <input type="text" class="form-control input-inline" id="E15"  value="${onceFanDes.e15Show}" />
                                                    <span class="help-inline">
                                                        %
                                                        <input type="checkbox" id="e15State" name="e15State"
                                                        <c:if test="${onceFanDes!=null&&operateField.e15State=='1'}">
                                                                   checked
                                                       </c:if>
                                                                >
                                                    </span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="control-label col-md-4" style="padding-left: 0"
                                                       name="ycfjglLabel"     for="E10">预热器出口一次风温度</label>

                                                <div class="col-md-8">
                                                    <input type="text" class="form-control input-inline" id="E10"  name="ycfjgl"  value="${onceFanDes.e10Show}"/>
                                                    <span class="help-inline">
                                                        ℃
                                                    </span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="control-label col-md-4" style="padding-left: 0"
                                                       name="ycfjglLabel"      for="E11">制粉系统漏风系数</label>

                                                <div class="col-md-8">
                                                    <input type="text" class="form-control input-inline" id="E11"  name="ycfjgl" value="${onceFanDes.e11Show}" />
                                                    <span class="help-inline">
                                                        %
                                                    </span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="control-label col-md-4" style="padding-left: 0"
                                                       name="ycfjglLabel"       for="E8">磨煤机入口一次风温度</label>

                                                <div class="col-md-8">
                                                    <input type="text" class="form-control input-inline" id="E8"  name="ycfjgl"  value="${onceFanDes.e8Show}"/>
                                                    <span class="help-inline">
                                                        ℃
                                                    </span>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <!--空气系统-->
                                <!--风机设计-->
                                <div class="col-md-12">
                                    <div class="col-md-12 margin-bottom-10">
                                        <h2>风机设计</h2>
                                    </div>
                                    <div class="col-md-12">
                                        <div class="col-md-4 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="aTypeStyle control-label col-md-4" style="padding-left: 0"
                                                        for="E18">容器裕度</label>

                                                <div class="col-md-8">
                                                    <input type="text" class="form-control input-inline" id="E18" value="${onceFanDes.e18Show}"/>
                                                    <span class="help-inline">
                                                        %
                                                    </span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-4 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="aTypeStyle control-label col-md-4" style="padding-left: 0"
                                                       for="E19">压头裕度</label>

                                                <div class="col-md-8">
                                                    <input type="text" class="form-control input-inline" id="E19" value="${onceFanDes.e19Show}"/>
                                                    <span class="help-inline">
                                                        %
                                                    </span>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="col-md-4 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="aTypeStyle control-label col-md-4" style="padding-left: 0"
                                                       for="E42">并列运行风机台数</label>

                                                <div class="col-md-8">
                                                    <input type="text" class="form-control input-inline" id="E42" value="${onceFanDes.e42Show}"/>
                                                    <span class="help-inline">
                                                        台
                                                    </span>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="col-md-6 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="control-label col-md-4" style="padding-left: 0"
                                                       for="E20">计算点风机入口空气温度</label>

                                                <div class="col-md-8">
                                                    <input type="text" class="form-control input-inline" id="E20" readonly value="${onceFanDes.e20Show}"/>
                                                    <span class="help-inline">
                                                        ℃
                                                    </span>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="col-md-6 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="control-label col-md-4" style="padding-left: 0"
                                                       for="E21">设计点风机入口空气温度</label>

                                                <div class="col-md-8">
                                                    <input type="text" class="form-control input-inline" id="E21" readonly value="${onceFanDes.e21Show}"/>
                                                    <span class="help-inline">
                                                        ℃
                                                    </span>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="col-md-6 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="aTypeStyle control-label col-md-4" style="padding-left: 0"
                                                       for="E52">计算点风机效率</label>

                                                <div class="col-md-8">
                                                    <input type="text" class="form-control input-inline" id="E52" value="${onceFanDes.e52Show}"/>
                                                    <span class="help-inline">
                                                        %
                                                    </span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="aTypeStyle control-label col-md-4" style="padding-left: 0"
                                                       for="E63">风机设计点效率</label>

                                                <div class="col-md-8">
                                                    <input type="text" class="form-control input-inline" id="E63" value="${onceFanDes.e63Show}"/>
                                                    <span class="help-inline">
                                                        %
                                                    </span>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <!--风机设计-->
                                <div class="form-body">
                                     <div class="row">
                                         <div class="col-md-5">
                                         </div>
                                         <div class="col-md-7">
                                             <button type="button" class="btn green" id="save"
                                                     onclick="onceFanDes.onceFanDesSave()">确定
                                             </button>
                                             <button type="button" class="btn green" id="nextPage"
                                                     onclick="onceFanDes.onceFanDesNext()">下一页
                                             </button>
                                         </div>
                                         <!--/span-->
                                     </div>
                                     <!--/span-->
                                 </div>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<input type="hidden" id="caseId" value="${caseId}" name="caseId">
<input type="hidden" id="addFlag" value="${onceFanDes==null?"add":"edit"}" name="addFlag">
<%@include file="../includes/footer.jsp" %>
<%@include file="../includes/bottomscript.jsp" %>
<script type="text/javascript" src="<c:url value="/js/oncefan/OnceFanDes1.js"/>"></script>
<script type="text/javascript">
    $(document).ready(function() {
        var caseId = $("#caseId").val();
        var step = '<%=request.getAttribute("step")==null?"":request.getAttribute("step")%>'
        if (caseId == "" || step != "") {
            var obj = getUrlByStep(step)
            toast.error(obj.message);
            setTimeout(function () {
                window.location.href = obj.url;
            }, 1200);
        }

        <%
         String message = (String) request.getAttribute("message");
         if(message!=null&&!"".equals(message)){
         if(message.equals("success")){
         %>
        toast.success("操作成功");
        <%
        }else{
        %>
        toast.error("<%=request.getAttribute("message")%>");
        <%
         }
            }
        %>
        onceFanDes.init();
        onceFanDes.ycfjglStateClick($("#ycfjglState"),1)
        onceFanDes.e15StateClick($("#e15State"),1)

    })
</script>
</body>
</html>
